import random
from django.core.management.base import BaseCommand
from content_center.models import Content


class Command(BaseCommand):
    def handle(self, *args, **options):
        titles = [
            "卡瓦洛日神山，鲜为人知的苯教秘境",
            "媚驴游记--官帽不是帽",
            "出发吧，遇见更美的你",
            "啊，散发着野性的美人峪",
            "骑行我的城:广州乌涌",
            "咫尺佛国--尼泊尔PoonHill小环线",
            "比赛开始前，本场比赛缺席的莫兰特与普尔互相击掌致意",
            "[流言板]普尔杀入篮下面对亚当斯，无视防守上篮得手",
            "【利村早间广播-5.10】渣叔谈曼城签下哈兰德、萨利有意马内",
            "[流言板]帕金斯:塔特姆做了他该做的事，但霍福德奠定了基调",
            "[流言板]友好示意!替补席边莫兰特与普尔互相握手示意",
            "跟男朋友打王者多次吵架，尝试解决问题，每次说我反应太大。(我的情绪一直在累积)",
            "相比于哈兰德的35万英镑周薪，jr觉得姆巴佩拿多少合适?两位都是炙手可热的球星。",
            "前巴萨球员动态20220510",
            "边线上的快速攻防转换",
            "为啥做这么详细的项目分析",
            "听何老师讲课部分存在的疑惑",
            "交手运动项目的综合因素分析",
            "下潜冲抱腿得分镜头",
            "五个摔跤倒地动作",
            "苏炳添教练兰迪.亨廷顿的科学训练公开课",
            "摔跤为什么输和赢",
            "看古典跤感和发力率的比拼",
            "抱单腿以后四种不同的处理措施",
            "谁都不用迎合其实是很奢侈的——陈佩斯",
            "拓宽思路，寻找答案",
            "体能严重下降造成的比赛消极现象",
            "古典跤势均力敌的对抗",
        ]
        covers = [
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/1651685213%281%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/1651685405%281%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/1651685624%281%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/CUBA.jpeg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/e280f24883ba6b79d2c477c837f38099.jpeg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E4%BD%9B%E7%A7%91%E5%9C%A8%E7%BA%BF%E5%AD%A6%E9%99%A2%E8%BD%AE%E6%92%AD%E5%9B%BE%E4%B8%BB%E9%A1%B5.png",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E5%A4%A7%E5%AD%A6%E7%94%9F%E8%81%94%E8%B5%9B.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E5%BA%93%E9%87%8C.webp",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E5%BE%92%E6%AD%A5.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E6%89%A3%E7%AF%AE.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E6%91%94%E8%B7%A4.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E6%A9%84%E6%A6%84%E7%90%83.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E6%BB%91%E9%9B%AA.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E7%90%83%E9%9E%8B%E5%B9%BF%E5%91%8A.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E7%AF%AE%E7%90%83%20%282%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E7%AF%AE%E7%90%83%20%283%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E7%AF%AE%E7%90%83%20%284%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E7%AF%AE%E7%90%83.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E8%B6%B3%E7%90%83%20%282%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E8%B6%B3%E7%90%83%20%283%29.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E8%B6%B3%E7%90%83.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E9%83%AD%E8%89%BE%E4%BC%A6.jpg",
            "https://caibo-0520.oss-cn-shenzhen.aliyuncs.com/banner/%E9%87%8E%E7%90%83%E5%B8%9D",
        ]
        contents = list(Content.objects.all())
        for i in contents:
            i.title = random.choice(titles)
            i.cover = random.choice(covers)
            i.save()
